package blazingbubble.network.game.strategy;

import blazingbubble.game.Bubble;
import moltencore.network.protocol.BubbleNextNotification;
import spark.network.protocol.Response;
import spark.network.strategy.IProtocolHandleStrategy;
import spark.network.protocol.Base;
import spark.network.protocol.Acknowledgement;
import org.apache.log4j.Logger;
import blazingbubble.game.Game;
import spark.utility.OutWrapper;

import java.util.Collection;

public class BubbleNextNotificationStrategy extends BubbleNotificationStrategy implements IProtocolHandleStrategy<BubbleNextNotification> {
	private Logger logger = Logger.getLogger(BubbleNextNotificationStrategy.class);

	public BubbleNextNotificationStrategy(Game game) {
		super(game, Bubble.State.Loaded);
	}

	@Override
	public void handle(BubbleNextNotification packet, OutWrapper<Response> acknowledgement, Collection<Base> additionalData) {
		defaultHandle(packet);

		acknowledgement.value = new Acknowledgement(packet);
	}
}